package com.wyd;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient //当前使用eureka的server
/**
 * 在启动该微服务式是能去加载我们定义的Feign配置类
 */
@EnableFeignClients(basePackages = "com.wyd")
@ComponentScan("com.wyd")
public class ConsumerfeignApp {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerfeignApp.class,args);
    }
}